/*------------------------------------------------------------------------
# SystemService.java - VipApi
# ------------------------------------------------------------------------
# 
# 获取基本配置信息 接口Service
# 
# author    wlm
# date  	2014/03/19
# version 	v1.0
# copyright Copyright (C) 2014 wevip.com. All Rights Reserved.
# Websites: http://www.wevip.com
# Technical Support:  Forum - http://www.wevip.com
# 
# 1、新规
#
 */
package cn.com.api.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Service;

import cn.com.api.entity.Version;
import cn.com.response.ApiResult;
import cn.com.response.ApiResultPage;

@Service
public interface SystemService {

	/**
	 * Android客户端版本更新，验证是否有新的版本
	 * 
	 * @param version
	 *            客户端版本号:
	 * @return
	 * 
	 */
	public List<Version> getVersion(int version);

	/**
	 * 记录API调用数据
	 * 
	 * @param request
	 * @param result
	 */
	public void logApi(HttpServletRequest request, ApiResult result);

	/**
	 * 记录API调用数据(分页)
	 * 
	 * @param request
	 * @param result
	 */
	public void logApiPage(HttpServletRequest request, ApiResultPage result);

	public boolean isUserLogin(String userid, String token) throws Exception;

	public boolean isMemberLogin(String userid, String token) throws Exception;
}
